﻿namespace Glue.Converters
{
    public class IfNotZeroConverter:BaseConverter<int,int>
    {
        public override int MapTowardsRight(int from, int to)
        {
            return from == 0 ? to : from;
        }

        public override int MapTowardsLeft(int from, int to)
        {
            return from == 0 ? to : from;
        }
    }
}
